home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000308_news@newsmaster….columbia.edu _Mon Jun 16 18:12:07 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA22969
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 16 Jun 1997 18:12:07 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA26797
  7.     for kermit.misc@watsun; Mon, 16 Jun 1997 18:12:06 -0400 (EDT)
  8. Path: news.columbia.edu!panix!news.mathworks.com!worldnet.att.net!newsadm
  9. From: Tom.Horsley@worldnet.att.net (Thomas A. Horsley)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Announcing Kermit 95 1.1.12 for Windows 95, Windows NT, and OS/2
  12. Date: 16 Jun 1997 18:07:06 -0400
  13. Organization: AT&T WorldNet Services
  14. Lines: 25
  15. Sender: tom@SPIKE.cc.columbia.edu
  16. Message-ID: <un2oqrylx.fsf@worldnet.att.net>
  17. References: <5np317$6qv$1@newsmaster.cc.columbia.edu>
  18.     <5o1l5n$89d@bug.rahul.net> <5o3k1e$obf$1@newsmaster.cc.columbia.edu>
  19.     <5o40t1$a3n@bug.rahul.net> <5o41o2$dka$1@newsmaster.cc.columbia.edu>
  20. NNTP-Posting-Host: 207.146.80.150
  21. X-Newsreader: Gnus v5.3/Emacs 19.34
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7169
  23.  
  24. >Not currently -- that's how we wanted to do it in the first place, but that
  25. >would require knowing the API for every release of every browser on every
  26. >platform, so for now we just start a new browser.  It's not as dumb an
  27. >approach as it might seem, however, since multiple browsers share the same
  28. >memory for pure code in Windows 95, Windows NT, and OS/2.  But yes, we do 
  29. >plan to revisit this question subsequent releases.
  30.  
  31. Not true - a browser independent API is already defined by Microsoft (but
  32. admittedly doesn't work on pre 4.0 versions of NT). For example, this little
  33. program will invoke a browser if it has to or just tell the existing browser
  34. to jump to the given URL, and it don't know 'nuthin about any browser:
  35.  
  36. #include <stdio.h>
  37. #include <windows.h>
  38. #include <shellapi.h>
  39. int __cdecl
  40. main(int argc, char **argv) {
  41.    if (argc == 2) {
  42.       ShellExecute(0, 0, argv[1], 0, 0, SW_NORMAL);
  43.    } else {
  44.       fputs("Please call with a single argument (a URL)\n", stderr);
  45.       exit(2);
  46.    }
  47.    return 0;
  48. }